home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 527 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.3 KB

  1. From: Bjarne Pohlers <bjarne@GOEDEL.UNI-MUENSTER.DE>
  2. Subject: Re: gethostname library function 
  3. Date: Thu, 07 Oct 93 10:05:35 +0100
  4.  
  5. |>I think it would be more unix-like to reverse the order of those 2
  6. |>things, and make the file /etc/hostname rather than /local/hostname.
  7. |>I suppose to maintain compatibility, it will have to do:
  8.  
  9. |>    o Look for a file /etc/hostname and use the contents
  10. |>    o Check for a HOSTNAME environment variable
  11. |>    o Look for a file /local/hostname and use the contents
  12.  
  13. Well, what about a global configuration-file in which all absolute
  14. path-names and thing like this may be configured?
  15. I think about a file c:\etc\host.cnf which may contain some of the
  16. following lines:
  17. HOSTNAME=myhost
  18. PASSWDFILE=d:\etc\passwd
  19.  
  20. and so on...
  21. This file would be examined by the library at run time. If it does not
  22. exists, we use the old defaults. As we might want to have this file
  23. not in c:\etc there should be a configuration program (like fixstk) to
  24. change this location in a compiled program...?
  25. If you agree, I would change the libs (if I have the time)...
  26.  
  27. Bjarne
  28. --
  29. Bjarne Pohlers                | Institut  fuer  Numerische  und  instrumentelle
  30. <bjarne@math.uni-muenster.de> |        Mathematik (Informatik) der WWU Muenster
  31. CREN: BJARNE@DMSWWU1A         | Einsteinstrasse 62 | D-48149 Muenster | Germany
  32. MAUS: Bjarne Pohlers @ MS2    | Phone: (x49) 251 - 83 37 54
  33.